﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Facebook_Graph_Toolkit.FacebookObjects {
    /// <summary>
    /// Represents a Facebook user's bookmark of a Facebook Group
    /// </summary>
    public class GroupBookmark : GraphApi.GraphApiObject{
        internal GroupBookmark(JSON.JsonObject JO) : base(JO) { }

        /// <summary>
        /// Name of the Group
        /// </summary>
        public string Name { get { return data["name"].ToString(); } }
        /// <summary>
        /// Group ID
        /// </summary>
        public string ID { get { return data["id"].ToString(); } }
        /// <summary>
        /// Version that the Group is using
        /// </summary>
        public int Version { get { return (int)data["version"]; } }
        /// <summary>
        /// Order of this bookmark in the user's bookmark list
        /// </summary>
        public long BookmarkOrder { get { return Convert.ToInt64(data["bookmark_order"]); } }
    }
}
